import requests
import json

def get_control(server, car_id):
    car_id = str(car_id)
    response = requests.get(server + '/control/' + car_id)
    res_dic = json.loads(response.text)

    return res_dic['data']
